package club.kingyin.easycache.component.annotation;

import club.kingyin.easycache.component.ExceptionFilter;
import club.kingyin.easycache.component.handler.IgnoreExceptionHandler;
import club.kingyin.easycache.component.handler.OriginalResultConverter;
import club.kingyin.easycache.component.ResultConverter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface InvokeException {

     Class<? extends ExceptionFilter> filter() default IgnoreExceptionHandler.class;

     Class<? extends ResultConverter> result() default OriginalResultConverter.class;
}
